var express = require('express');
var router = express.Router();

const RatedModel = require('../model/rateds');

/* GET users listing. */
router.get('/list', function(req, res, next) {
  RatedModel.find({}, (err, doc) => {
    if (err) throw err;
    res.json({
      status: 0,
      result: doc
    })
  })
});

module.exports = router;
